package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountBrandClassify;
import com.ecoolex.discount.sales.entity.DiscountBrandClassifyExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountBrandClassifyMapper {
    long countByExample(DiscountBrandClassifyExample example);

    int deleteByExample(DiscountBrandClassifyExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DiscountBrandClassify record);

    int insertSelective(@Param("record") DiscountBrandClassify record, @Param("selective") DiscountBrandClassify.Column ... selective);

    DiscountBrandClassify selectOneByExample(DiscountBrandClassifyExample example);

    List<DiscountBrandClassify> selectByExample(DiscountBrandClassifyExample example);

    DiscountBrandClassify selectByPrimaryKey(Integer id);

    DiscountBrandClassify selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountBrandClassify record, @Param("example") DiscountBrandClassifyExample example, @Param("selective") DiscountBrandClassify.Column ... selective);

    int updateByExample(@Param("record") DiscountBrandClassify record, @Param("example") DiscountBrandClassifyExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountBrandClassify record, @Param("selective") DiscountBrandClassify.Column ... selective);

    int updateByPrimaryKey(DiscountBrandClassify record);

    int batchInsert(@Param("list") List<DiscountBrandClassify> list);

    int batchInsertSelective(@Param("list") List<DiscountBrandClassify> list, @Param("selective") DiscountBrandClassify.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountBrandClassifyExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}